angular.module('furion.controllers.infos', [])

.controller 'InfoCtrl', ($scope, $state, RemoteSrv) ->

  
  return

.controller 'MatchAnnouncementsCtrl', ($scope, $state, RemoteSrv) ->

  return

.controller 'MyPoolCtrl', ($scope, $state, RemoteSrv) ->

  return

.controller 'CourseCtrl', ($scope, $state, RemoteSrv, Course) ->
  $scope.courses = []
  $scope.courses = Course.all

  $scope.goResource = (l)->
    return unless l.url
    if l.url.match(/http/)
      $state.go 'resource', {title: l.title, url: l.url}

  return

.controller 'ChallengeCtrl', ($scope, $state, RemoteSrv) ->

  return

.controller 'BarCtrl', ($scope, $state, RemoteSrv) ->

  return

.controller 'MarketCtrl', ($scope, $state, RemoteSrv) ->

  return

.controller 'IdolCtrl', ($scope, $state, Idol) ->
  $scope.list = Idol.all
  
  $scope.goResource = (l)->
    return unless l.url
    if l.url.match(/http/)
      $state.go 'resource', {title: l.title, url: l.url}
  
  return